* {
    margin: 0;
    padding: 0;
}

/* 设置整体页面高度 */
html, body {
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 上方导航栏 */
.nav {
    position: absolute;
    width: 100%;
    height: 50px;
    background-color: #01a0e4;
    color: whitesmoke;
    display: flex;
    justify-content: left;
    align-items: center;
    z-index: 200;
}
/* 导航栏中的图标 */
.nav img {
    width: 40px;
    height: 40px;
    margin-left: 30px;
    margin-right: 10px;
    border-radius: 50%;
}
/* 导航栏中的占位器 */
.nav .spacer {
    width: 70%;
}

/* 导航栏中的按钮 */
.nav a {
    color: #aba3a3;
    text-decoration: none;
    padding: 0 10px;
}
a:hover{
    background-color: white;
}
/* 页面内容容器, 版心 */
.container {
    position: absolute;
    top: 50px;
    /* 使用 calc 计算高度 */
    height: calc(100% - 50px);
    /* 设置版心宽度 */
    width: 100%;
    /* 水平居中 */
    margin: 0 auto;
    /* 使用弹性布局 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

/* 左侧部分, 用来放置用户信息 */
.container-left {
    height: 100%;
    width: 200px;
}

/* 右侧部分, 用来放置正文 */
.container-right {
    height: 100%;
    /* 和左侧部分中间留出 5px 间隙 */
    width: 70%;
    margin-right: 100px;
    margin-left: -200px;
    /* 如果内容溢出就自动加上滚动条 */
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid silver;
    position: relative;
    left: -100px;
}

/* 展示用户信息的卡片 */
.card {
    position: absolute;
    background-color: lightgray;
    border-radius: 10px;
    width: 120px;
    height: 70px;
    padding: 30px;
    z-index: 200;
}

/* 用户头像 */
.avtar{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.5s ease;
}
.card:hover img{
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
/*用户点赞按钮*/
.card image{
    width: 140px;
    height: 140px;
    border-radius: 50%;
}
/* 用户名 */
.card p{
    text-align: left;
    padding: 10px;
    font-size: 13px;
}

/* 用户 github 链接 */
.card a {
    display: block;
    text-align: left;
    color: #999;
    text-decoration: none;
    padding: 10px;
}
.card:hover .card_ul{
    display: block;
    /* 展示块 */
}
/* 设置二级菜单，实现与“一级菜单点击特效”配合，实现导航栏下拉*/
.card_ul{
    position:relative;
    /* 相对位置 */

    /* 顶格，与顶部0距离 */
    width: 140px;
    background-color:gray;
    display: none;
    /* 隐藏块 */
    transition: all 0.5s ease;
    border-radius: 10px;
}
/* 二级菜单鼠标挪动特效 */
/* 设置二级菜单高度 */
.card_ul{
    height: 200px;
}
/* 设置二级菜单选项高度 */
.card_ul>li{
    line-height: 40px;
}
ul li{
list-style-type: none;
}
/* 展示文章数目的面板 */
.card .counter {

    display: flex;
    justify-content: space-around;
    font-size: 13px;
}
#container{
    height: 100vh;
}
.bg{
    position: absolute;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
}
.sun{
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    height: 600px;
    background-color:orange;
    border-radius: 50%;

}
.moon{
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + -160px),calc(-50% + -180px));
    width: 600px;
    height: 600px;
    box-shadow: 160px 180px 0 cyan;
    border-radius: 50%;
}
.sea{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30%;
    backdrop-filter: blur(70px);
    z-index: 100;
}
.sun,
.moon,
.sun-box,
.moon-box,
.bg{
    transition: all 1s ease-in-out;
}
.sun-box,.moon-box{
    position: relative;
    overflow: hidden;
}
.light .sun-box{
    height: 100%;
}
.light .moon-box{
    height: 0;
}
.light .bg{
    background-color: #ffeea2;
}
/* 夜晚 */
.dark .sun-box{
    height: 0%;
}
.dark .moon-box{
    height: 100%;
}
.dark .bg{
    background-color: #040720;
}
.btn-box{
    position: absolute;
    bottom: 5px;
    left: 5px;
    z-index: 101;
    display: flex;
    flex-direction: row;
}
.btn-box div{
    background: rgba(255,255,255,0.7);
    color: #000;
    width: 90px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 5px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}
.btn-box #l:hover{
    background:lightcoral;
}
.btn-box #d:hover{
    background:darkslategrey;
}